<template>
    <div class="searchPage">

        <p>搜索文章</p>
        <input type="text" v-model="articalTitle" placeholder="请输入你想查找的文章">
        <button @click="searchMy">开始查询</button>
    </div>
</template>
<script>
export default {
    data(){
        return{
            articalTitle:''
        }
    },
    methods:{
        searchMy(){
            this.$router.push({path:"/myBlog/searchMy",query:{
                keyWord:this.articalTitle
            }
            })
        }
    }
}
</script>
<style scoped>
    .searchPage{
        width: 300px;
        margin: 0 auto;
    }
    .searchPage p{
        text-align: center;
        color: white;
        font-size: 30px;
    }
    .searchPage input{
        width: 300px;
        height: 60px;
        border:none;
        background-color: transparent;
        border-bottom: 2px solid aqua;
        margin-top:20px;
        text-align: center;
    }
    .searchPage button{
        width: 100px;
        height: 40px;
        background-color:aqua;
        display: block;
        margin: 30px auto;
        border:none;
        border-radius: 5px;
        
    }
</style>